package com.edu.koTA07.XmlToBean;

import java.io.InputStream;

import com.edu.koTA07.XmlDataSet.CustomerXmlDataSet;
import com.edu.koTA07.takingOrder.R;
import com.edu.koTA07.utils.CustomerUtils;
import com.edu.koTA07.xmlreader.CustomerXMLtoDataSet;

import android.content.Context;

public class CustomerXmlSetToBean{	
    CustomerXmlDataSet customer = null;
	CustomerUtils util;
    
    public CustomerXmlSetToBean(Context context) {
    	super();
        InputStream in = context.getResources().openRawResource(R.raw.customer);
        CustomerXMLtoDataSet customerXMLtoBean = new CustomerXMLtoDataSet(in);
		customer = customerXMLtoBean.getCustomerList();
		util = new CustomerUtils(context);
		util.onSaveDataFromXml(customer);
    }

}   
